<?php
class DashBoard extends Controller{
	public $swfCharts ;
	function DashBoard() {
		parent::Controller();
		$this->load->helper("url");
		$this->data["base"] = $this->config->item('base_url');
		$this->load->model('Dashboard_model','',TRUE);
		//$this->load->library('fusioncharts') ;

		
		$this->load->database();	
                session_start();
		//$this->swfCharts  = base_url().'flash/Column3D.swf' ;

	}
	function index(){
		/*//Store Name of Products
            $arrData[0][1] = "Product A";
            $arrData[1][1] = "Product B";
            $arrData[2][1] = "Product C";
            $arrData[3][1] = "Product D";
            $arrData[4][1] = "Product E";
            $arrData[5][1] = "Product F";
 
            //Store sales data
            $arrData[0][2] = 567500;
            $arrData[1][2] = 815300;
            $arrData[2][2] = 556800;
            $arrData[3][2] = 734500;
            $arrData[4][2] = 676800;
            $arrData[5][2] = 648500;
 
            $strXML        = $this->fusioncharts->setDataXML($arrData,'','Rp') ;
 
            $this->data['graph'] = $this->fusioncharts->renderChart($this->swfCharts,'',$strXML,"productSales", 530, 350, false, false) ;*/
		
		

			
		
		//set template
		$this->data['title']='Home';
		$this->load->vars($this->data);
		$this->load->view('layout/head');
		$this->load->view('layout/body');
		$this->load->view('layout/slice-atas');
		$this->load->view('dashboard/dashBoard');
		$this->load->view('layout/footer');
	}
	function creat_year() {
		$this->load->vars($this->data);
		$this->load->view('dashboard/createTicket/create_year');
	}
	
	
}
?>